// 是否是移动端设备
export function isMobileDev(): boolean {
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
}

// 是否是16进制颜色值
export function isHexColor(color: string): boolean {
  const reg = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/
  return reg.test(color)
}
